<!DOCTYPE html>
<html lang="en" >

	<head>
		<base href="../../../../Techshine-vw/" />
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>添加图片</title>
		<meta name="description" content="这是一个 index 页面">
		<meta name="keywords" content="index">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta name="apple-mobile-web-app-title" content="Amaze UI" />

		<link rel="icon" type="image/png" href="Main/i/favicon.png">
		<link rel="apple-touch-icon-precomposed" href="Main/i/app-icon72x72@2x.png">
		<link href="Main/css/bootstrap/css/bootstrap.min.css" rel="stylesheet">
		
		<style>
			#userForm .row{
				margin-top:3%;
			}
		</style>
	</head>

	<body >
		<div class="container" style="margin-top: 13%;">
			<form class="form-inline">
				
					
					<div class="row">
						<div class="col-lg-2 col-md-2 col-xs-2"></div>
						<div class="col-lg-5 col-md-5 col-xs-5">
							<div class="form-group">
								<label for="age">:</label>
								<input type="text" class="form-control" id="id" name="id" placeholder="">
							</div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-lg-2 col-md-2 col-xs-2"></div>
						<div class="col-lg-5 col-md-5 col-xs-5">
							<div class="form-group">
								<label for="age">:</label>
								<input type="text" class="form-control" id="name" name="name" placeholder="">
							</div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-lg-2 col-md-2 col-xs-2"></div>
						<div class="col-lg-5 col-md-5 col-xs-5">
							<div class="form-group">
								<label for="age">:</label>
								<input type="text" class="form-control" id="code" name="code" placeholder="">
							</div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-lg-2 col-md-2 col-xs-2"></div>
						<div class="col-lg-5 col-md-5 col-xs-5">
							<div class="form-group">
								<label for="age">:</label>
								<input type="text" class="form-control" id="imgurl" name="imgurl" placeholder="">
							</div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-lg-2 col-md-2 col-xs-2"></div>
						<div class="col-lg-5 col-md-5 col-xs-5">
							<div class="form-group">
								<label for="age">1往期精彩图片，2.。。:</label>
								<input type="text" class="form-control" id="imgtype" name="imgtype" placeholder="1往期精彩图片，2.。。">
							</div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-lg-2 col-md-2 col-xs-2"></div>
						<div class="col-lg-5 col-md-5 col-xs-5">
							<div class="form-group">
								<label for="age">:</label>
								<input type="text" class="form-control" id="createtime" name="createtime" placeholder="">
							</div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-lg-2 col-md-2 col-xs-2"></div>
						<div class="col-lg-5 col-md-5 col-xs-5">
							<div class="form-group">
								<label for="age">:</label>
								<input type="text" class="form-control" id="seq" name="seq" placeholder="">
							</div>
						</div>
					</div>
				
				
				<div class="row">
					<div class="col-lg-4 col-md-4 col-xs-4"></div>
					<div class="col-lg-3 col-md-3 col-xs-3">
						
						<button type="button" id="reset_btn" class="btn btn-primary">重置</button>
					</div>
					<div class="col-lg-3 col-md-3 col-xs-3">
						<button type="submit" id="ensure" class="btn btn-info">确定</button>
					</div>
				</div>
			</form>
		</div>
		<script src="Main/js/jQuery/jquery.min.js"></script>
		<script src="Main/js/bootstrap/js/bootstrap.min.js"></script>
		<script src="Main/js/jquery.livequery.js"></script>
		<script src="Main/js/layer/layer.js"></script>
		<script src="Main/js/jQuery/jquery.loadData.js"></script>
		<script>
			
			function formSubmit(){
				$.ajax({
					type:"post",
					url:"img/update",
					async:false,
					data: $(selfObj.formId).serializeArray(),
					success:function(data){
						if(data.status==200){
							//页面关闭刷新
							layer.alert("添加成功")
						}else{
							layer.alert(data.msg)
						}
					}
				});
			}
		</script>
	</body>

</html>